package com.example.mainactivty;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    ProgressBarView progressBarView ;
    TextView btnRefresh ;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        progressBarView = findViewById(R.id.progressBar);
        btnRefresh = findViewById(R.id.btnRefresh);
        progressBarView.setProgress(70,2000);

        btnRefresh.setOnClickListener(v -> {
            progressBarView.setProgress(50,2000);
        });
    }
}